package zhengyanze.com.aipoemmax.guide.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * 古诗的bean
 * Created by MrZheng on 2017/7/20.
 */

public class PoemBean2 implements Serializable{
    String title;
    String author;
    String content;
    String link;

    public PoemBean2(String title, String author, String content, String link) {
        this.title = title;
        this.author = author;
        this.content = content;
        this.link = link;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PoemBean2 poemBean2 = (PoemBean2) o;

        return content != null ? content.equals(poemBean2.content) : poemBean2.content == null;

    }

    @Override
    public int hashCode() {
        return content != null ? content.hashCode() : 0;
    }
}
